package com.easychat.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 10 2024/10/14
 */
@Getter
@AllArgsConstructor
public enum AppUpdateFileTypeEnum {
     LOCAL(0,"本地"),
     OUTER_LINK(1,"外链");

     private Integer type;
     private String description;

     public static AppUpdateFileTypeEnum getByType(Integer type){
          for(AppUpdateFileTypeEnum item : values()){
               if(item.type.equals(type)){
                    return item;
               }
          }
          return null;

     }


}
